

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>主体部分</title>
	<base target="_self">
	<link rel="stylesheet" type="text/css" href="skin/css/base.css" />
	<link rel="stylesheet" type="text/css" href="skin/css/main.css" />
	<script type="text/javascript" src="./skin/js/common.js"></script>
	<script>
		$('form-admin-add').onsubmit=function(){
			var msg ="";
			var username = $('user_name') .value;
			var password = $('password').value;
			var confirm_password = $('confirm_password').value;
			if(username == ''|| password ==''){
				msg +='请填写用户名和密码!\n';
			}
			if (msg == ''){
				return true;
			}else{
					alert(msg);
					return false;
			}
		}
	</script>
</head>
<body leftmargin="8" topmargin='8'>
	<table width="98%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px;margin-top:8px;">
	  <tr>
	    <td background="./skin/images/frame/wbg.gif" bgcolor="#EEF4EA" class='title' border="0px"><span><img src='./skin/images/frame/arr3.gif' style='margin-right:10px;'>添加管理</span></td>
		<td align="right" background="./skin/images/frame/wbg.gif" bgcolor="#EEF4EA" class='title' border="0px"></td>
	  </tr>
	  <form action="admin.php" method="post" id="form-admin-add">
	  <tr bgcolor="#FFFFFF">	   	
	   	<td>
	   		<table style="margin-bottom: 8px;margin-top: 8px;margin-left:20px;width: 80%;">
	   	</td>
	   	<tr>
	   		<td> 用户名:</td>
		   	<td> 
		   		<input type="text" name="user_name"  id="user_name" value="" class="input-text" autocomplete="off"/>
		   	</td>
	   </tr>
	    <tr>
		   	<td> 密码:</td>
		   	<td> 
		   		<input type="password" name="password" id="password" value="" class="input-text" autocomplete="off"/>
		   	</td>
	   </tr>
	    <tr>
	    	<td> 邮箱:</td>
	    	<td> <input type="email" name="email" id="email" value="" class="input-text"autocomplete="off" ></td>
	    </tr>
	    <tr> 
	    	<td width="100px">角色:</td>
	    	<td> <select name="rode_id" class="select-style">
	    			<option value="0">超级管理员</option>
	    			<option value="1">一级管理员</option>
	    			<option value="2">二级管理员</option>
	    			<option value=3>三级管理员</option>
	    	 </select></td>
	    </tr>
					<tr style="background: #FBFCE2;">
						<td colspan="2" align="center" height="48px">
						<input type="hidden" name="act" value="doadd"/>
						<input calss="btn btn-primary" type="submit" value="添加"> 
						</td>
					</tr>
					</table>
				</td>
			  </tr>
			</form>

			
	  <!-- data end-->
	  <!-- select start-->
		 
	  <!-- select end-->
	  <!-- page start-->
	  <!-- page end-->
	</table>
	</body>
</html>